import request from '@/utils/request'



/**
 * 访问内置http服务
 */
const requestHttp = (uri, parameter) => {
  // url转换
  const host = 'http://localhost:20002';
  let url = uri.split('.').join('/');
  url = host + '/' + url;
  console.log('url:', url);
  return request({
    url: url,
    method: 'post',
    data: parameter, // body
    params: {}, // URL 参数
    timeout: 60000,
  })
}

export {
  requestHttp,
}
